package com.acxiom.foodreview.service;

import com.acxiom.foodreview.entity.Examples;
import com.acxiom.foodreview.entity.Page;

/**
 * Created by hadong on 2017-03-23.
 * exampleService
 */
public interface ExamplesService {

	/**
	 * insert
	 * @param examples
	 * @return
     */
	public boolean insert(Examples examples);

	/**
	 * findById
	 * @param id
	 * @return
     */
	public Examples findById(Integer id);

	/**
	 * findAsPage
	 * @param page
	 * @param rows
     * @return
     */
	public Page<Examples> findAsPage(int page, int rows);
	
	/**
	 * update
	 * @param examples
	 * @return
     */
	public boolean update(Examples examples);
	
	/**
	 * delete
	 * @param Integer id
	 * @return
     */
	public boolean delete(Integer id);

}
